package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the BLOODREQUESTREQUIREMENT database table.
 * 
 */
@Entity
public class Bloodrequestrequirement implements Serializable {
	private static final long serialVersionUID = 1L;
	private BloodrequestrequirementPK id;
	private Timestamp createddate;
	private Timestamp deleteddate;
	private String isactive;
	private int number;
	private Bloodgroup bloodgroup;
	private Bloodrequest bloodrequest;

    public Bloodrequestrequirement() {
    }


	@EmbeddedId
	public BloodrequestrequirementPK getId() {
		return this.id;
	}

	public void setId(BloodrequestrequirementPK id) {
		this.id = id;
	}
	

	public Timestamp getCreateddate() {
		return this.createddate;
	}

	public void setCreateddate(Timestamp createddate) {
		this.createddate = createddate;
	}


	public Timestamp getDeleteddate() {
		return this.deleteddate;
	}

	public void setDeleteddate(Timestamp deleteddate) {
		this.deleteddate = deleteddate;
	}


	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}


	@Column(name="\"NUMBER\"")
	public int getNumber() {
		return this.number;
	}

	public void setNumber(int number) {
		this.number = number;
	}


	//bi-directional many-to-one association to Bloodgroup
    @ManyToOne
	@JoinColumn(name="BLOODGROUPID")
	public Bloodgroup getBloodgroup() {
		return this.bloodgroup;
	}

	public void setBloodgroup(Bloodgroup bloodgroup) {
		this.bloodgroup = bloodgroup;
	}
	

	//bi-directional many-to-one association to Bloodrequest
    @ManyToOne
	@JoinColumn(name="BLOODREQUESTID")
	public Bloodrequest getBloodrequest() {
		return this.bloodrequest;
	}

	public void setBloodrequest(Bloodrequest bloodrequest) {
		this.bloodrequest = bloodrequest;
	}
	
}